The effects of bank regulation on the relationship between capital and risk