Efficient energy management in smart micro-grids: ZERO grid impact buildings