Artificial intelligence moral agent as Adam Smith's impartial spectator