Studies of charge density waves in reduced dimensions by surface x-ray scattering