State-contingent overconfidence : application to bank loans