Quadratic Jahn-Teller coupling in octahedral systems