An inertial spectrometer for aerosol particles