Include electric fields during potential energy calculations

[#52998997]