Magnetic properties of Co and Ni alloy nanoparticles dispersed in a silica matrix