Direct Observation of Li+ Ions Trapped in a Mg2+-Templated Metal-Organic Framework.