Pauling's electrostatic rule for partially covalent/partially ionic crystals