Characterization of sputtered YBaCuO and SmBaCuO thin films: Structural properties and role of thermal treatment