Density gradient based regularization of topology optimization problems