Function to create a custom peak that can be subsequently applied using
the function applyPeaksFilter-msi.dataset-method. Argument of
the function is the index vector of the selected peaks named with their m/z
values. The m/z values are used to check whether the indices correspond to the
common m/z values in the msi.dataset-class object.