British No 1 Laura Robson battled back from a set down against Magdalena Rybarikova to advance to the second round of the WTA Mutua Madrid Open.