Investigating the economic effects of the erosion of the rule of law with an events-based approach