Thin-film gas sensors operating in a perpendicular current mode