Faraday magneto-optical rotation in compositionally graded films