Harsanyi's social aggregation theorem for state-contingent alternatives