Interlayer coupling in magnetic multilayers: analogy to superexchange processes in insulators