Theoretical modelling of emission-line galaxies: new classification parameters for mid-infrared and optical spectroscopy