Three essays on banking risk