Structural, electronic, magnetic, and optical properties of MFe 2 O 4 (M = Ni, Fe, Co) spinel ferrites: A density functional theory study