Mathematical model for bone mineralization