Motivational factors for using generative AI tools in education : perspectives of high school and university students