Chemistry, Structure, and Function of Lone Pairs in Extended Solids.