Credit booms and crises: what do historical bank-level data tell us?