Calculate rms error for energy-strain fit.