Algorithms for fast modelling and interpretation of mixed mineral spectra