Mechanism of single atom switch on silicon