The Participatory Turn in AI Design: Theoretical Foundations and the Current State of Practice (Equity and Access in Algorithms, Mechanisms, and Optimization)