Bad loans and resource allocation in crisis years: evidence from European banks