A study of the numerical heating in electrostatic particle simulations