Band calculations using broadband Green’s functions and the KKR method with applications to magneto-optics and photonic crystals