An autonomic bio-inspired algorithm for wireless sensor network self-organization and efficient routing