Strong coupling of Sm and Fe magnetism in SmFeAsO as revealed by magnetic x-ray scattering