Growth of Textured Chalcogenide Thin Films and Their Functionalization through Confinement