Directed precipitation of hydrated and anhydrous magnesium carbonates for carbon storage.