Effects of Magnesium Ions on Crystallization and Morphogenesis of Oriented Calcite Crystals Templated by Organic Surfaces