The Jahn-Teller effect in the excited states of MnF6 4− and CrF6 3− complexes