How is bank performance affected by functional distance?