Modelling and Characterisation of Flexibility\\from Distributed Energy Resources