Electronic structure and optical band gap determination of NiFe2 O4