Francisco Cerundolo came from a set behind to beat Dusan Lajovic to progress through to the Rio Open semi-finals.