New tool can diagnose strokes with a smartphone