Calculate elemental formulas from ultrahigh resolution mass spectrometry data