Loan portfolio diversification, market structure and bank stability