Optimisation of total-reflection X-ray fluorescence for aerosol analysis