Optimal Redistribution via Income Taxation and Market Design