Magnetic moments of quarks and leptons as three spin-1/2 composites