Democracy in unequal times: how economic inequality influences democratic backsliding