Structural and optical properties of Ba(Ti1−x,Nix)O3 thin films prepared by sol–gel process