Jahn-Teller effect in spinel manganites probed by soft x-ray absorption spectroscopy