A mid-infrared spectroscopic study of young stellar objects in the SMC region NGC 346: JWST detects dust, accretion, ices, and outflows