The first female US ambassador to Russia is leaving her role after serving through one of the most difficult periods in relations between the two countries.