Structural, magnetic and electrical properties of cobalt ferrites prepared by the sol–gel route