Fundamentals of Thermocapillary Sculpting of Liquid Nanofilms and Applications to Thin Film Micro-Optics