Sparsity-promoting optimal control of distributed systems