Calibration using Constrained Smoothing with Application to Mass Spectrometry Data