Self-organizing topology for energy-efficient ad-hoc communication networks of mobile devices