Crystal chemistry, and thermodynamic and kinetic properties of calcite, dolomite, apatite, and biogenic silica: applications to petrologic problems