Fabrication and properties of Er-substituted BaNb2O6 thin films through a chemical route