electric field is along the z-direction throughout. The magnitude of electric field is