More than 400 animals, mainly cats and dogs, have been rescued from an illegal trading network in Spain.