Earnings quality and investment efficiency: the role of the institutional settings