Fixed segv in g_potential. Field output has now also the correct prefactor for V/nm