An analytical method for quantifying the flexibility potential of decentralised energy systems | Synapse