Computation of optical properties of multilayered media for magneto‐optical memories