In situ electric field simulation in metal/insulator/metal capacitors