A solvothermal route to capped nanoparticles of γ-Fe2O3 and CoFe2O4