Intensity-Aware Rank Estimation for Dimensionality Reduction in Imaging Mass Spectrometry