Stability relations of malachite and azurite