Sparse models by iteratively reweighted feature scaling: a framework for wavelength and sample selection