A mechanism design perspective on firms and market power