The electron-hadron separation performance of the PAMELA electromagnetic calorimeter