Quantum size effects and magnetoresistance in spin-valved Co/Cu/Co trilayer structures