Dynamic defect-manipulation induced novel functionality in SnO2