Electric field calculation of capacitor