Unveiling Nanoscale Structures in Thin Films with Grazing-Incidence X-ray Scattering