Melting of Variable-Thickness Liquid-Crystal Thin Films: A Synchrotron X-Ray Study