Text this: Element enrichment factor calculation using grain-size distribution and functional data regression