Coulomb gap, its critical behavior, and the metal-insulator transition in doped semiconductors