Arrested Precipitation Technique for Synthesis of Chalcogenide and Oxide Thin Films