A compartmental approach to the mechanism of calcification in hermatypic corals