Statistical detection of differentially abundant ions in mass spectrometry-based imaging experiments with complex designs