Crystal nucleation in an electric field