Electric charge measurement on a single microparticle using thermodynamic analysis of electrostatic forces