Optical band gap hierarchy in a magnetic oxide: Electronic structure of NiFe2O4