A comparative study of centralized and decentralized active power control in residential energy districts