Energy efficiency driven design of a flexible communication and localization system by