Sparse and Low-rank Constrained Optimization: Formulations, Theory, and Algorithms