What are the ways in which market failures can impact the economy?