Dependence of the magnetic and optical properties of Ni-Co nanoferrite on the particle shape