Development of a general surface contour by ion erosion. Theory and computer simulation