Nanostructure and magnetic properties of CoNi alloy based nanoparticles dispersed in a silica matrix