A new algorithm could help protect planes from damaging volcanic ash