Advancements in AI for social good: A comprehensive overview