ESCA investigation of SnOx films used as gas sensors