Rangers beat Capitals, advance to semifinals