Tuning the magneto-optical Kerr effect by the nanograting cross section.