Requirements for Ionic or Covalent Bonding