Why is the competitive firm's supply curve equal to the marginal cost curve, and why do firms earn zero profits in the long run?