Electronic structure and vibrational properties of KRbAl2B2O7