Molecular magnetic anisotropies from the Cotton–Mouton effect