Inequality, credit expansion and financial crises