Thermal effects on electromagnetic properties of Cu1-xMgxFe2O4 ferrites