The Lucas paradox and the quality of institutions