Strengths of ionic and covalent bonds