Structure and stability of SnO2 nanocrystals and surface-bound water species