STEM-NET: How to deploy a self-organizing network of mobile end-user devices for emergency communication