How to get electric potential from electric field