Sprayed tungsten-doped and undoped bismuth ferrite nanostructured films for reducing and oxidizing gas sensor applications