On the formation of Y-Ba-Cu-O superconducting thin films