Maximum electric charge of a hydrometeor in the electric field of a thundercloud