Microstructural inhomogeneities in chemically derived Ba_2YCu_3O_7−x thin films: Implications for flux pinning