A sufficient condition for a polyhedron to be rigid