Kovalent Bağlar, Metalik ve İyonik Kristaller (Kimya)