Foreign direct investment and institutional quality