Electrostatic models of insulator-metal and metal-insulator concentration phase transitions in Ge and Si crystals doped by hydrogen-like impurities