Modelling energy-consuming social practices as agents