Magnetic properties of complex d 1 and d 5 ions: crystal field model and Jahn /Teller effect