Optical and magneto-optical polar Kerr spectra of Fe3O4 and Mg2+- or Al3+-substituted Fe3O4