X-ray scattering in polymers and micelles