Modifying tin dioxide surfaces to achieve chemical stability and electronic functionality.