A discrete Morse-based approach to multivariate data analysis