The evolution of sanctioning institutions: an experimental approach to the social contract