Quantum-well states and magnetic coupling between ferromagnets through a noble-metal layer.