Wireless sensor network design for smart grids and Internet of things for ambient living using cross-layer techniques. (July 2019)