Three essays on bank risk