'Safety nets' built by army ants could help engineers design self-healing robot swarms