Gravar-mail: Energy-efficient node selection in application-driven WSN