Comparison of the surface morphology and microstructure of in situ and ex situ derived YBa2Cu3O7−x thin films