On the Complexity of Market Equilibria and Revenue Maximization