X-ray spectroscopic studies of copper-zinc and copper-magnesium mixed ferrites-CuxZn1-x Fe2O4 and CumMg1-x Fe204