The impact of AI on society