Diagnostic magmatic features in carbonatites: implications for the origins of dolomite- and ankerite-rich carbonatites