Photomagnetism and structure in cobalt ferrite nanoparticles