A theoretical study of flavilium salts