Microstructure and electrical properties of YBCO thin films