Doping independent work function and stable bandgap of spinel ferrites with tunable plasmonic and magnetic properties