Proton and charge transfer reactions dynamics of a hydroxyflavone derivative in a polar solvent and in a cyclodextrin nanocavity