Numerical computation of the projection of a point onto a polyhedron