Public commitment making as a structural solution in social dilemmas