Design of a custom-made device for real-time optical measurement of differential mineral concentrations in three-dimensional scaffolds for bone tissue engineering