Fast projections onto mixed-norm balls with applications