Simulations of dislocation nucleation from atomic size surface steps and grooves