Contribution of quantum-well states to the RKKY coupling in magnetic multilayers.