SODAs: Sparse Optimization for the Discovery of Differential and Algebraic Equations