AI is helping scientists reveal star ages. Here's how