Building automation and control systems and electrical distribution grids: A study on the effects of loads control logics on power losses and peaks