Modeling the stability and the motion of DNA nucleobases on the gold surface