The microstructure and superconductivity of GdBa2Cu3O7−x thin films