The friendship app Replika was created to give users a virtual chatbot to socialize with. But how it’s now being used has taken a darker turn.