Added error handling to new FdElectrostatics class.
Merge remote-tracking branch 'upstream/master' into fd-electrostatics