The self-selection of democracies into treaty design: insights from international environmental agreements