Generic properties of critical points of the mean curvature of the boundary of a domain