Text this: Quantitative analysis of complex materials using non-negative matrix factorisation