Dilute magnetic ions mediated magneto-dielectric, optical and ferroelectric response of MgAl2O4 spinels