X-ray Photoemission Spettroscopy and Scanning tunneling Spectroscopy study of the thermal stability of WO3 thin films