New AI tool that detects star flares could help us find habitable planets