On the design velocity field in the domain and boundary methods for shape optimization