On the correspondence between 2D force networks and polyhedral stress functions