Diamond potential versus oxygen regime of carbonatites