Long-term energy system planning considering short-term operational constraints