MAGNETIC COUPLING IN THIN LAYERS AND SUPERLATTICES INVESTIGATED BY RESONANT SCATTERING OF POLARIZED SOFT X-RAYS