AI in STEM Education: An In-depth Review