Energy markets and green bonds: A tail dependence analysis with time-varying optimal copulas and portfolio implications