Molecular layering in a liquid on a solid substrate: an X-ray reflectivity study