Optimal market participation of VPPs in TSO-DSO coordinated energy and flexibility markets | Synapse