Robots trained on AI exhibited racist and sexist behavior