Geochemistry of Carbonates on Mars: Implications for Climate History and Nature of Aqueous Environments