Characterisation and optimisation of ion discrimination in a mini ion funnel for a miniature mass spectrometer