The influence of chemical reactivity of surface defects on ambient-stable InSe-based nanodevices