Diagenesis of skeletal carbonates