Influence of Mg2+ substitution on the strain sensitivity of CoFe2O4 prepared by solid-state method