Uncertainty estimation for margin detection in cancer surgery using mass spectrometry