Crystal chemistry of the rhombohedral carbonates