Numerical modeling of 2-D granular step collapse on erodible and nonerodible surface