A force consistent method for electrostatic energy calculation in fluctuating charge model