A long-term capacity investment and operational energy planning model with power-to-X and flexibility technologies | Synapse