A metabolic model for the determination of shell composition in the bivalve mollusc, Mytilus edulis