Caspter Ruud comes from behind to beat Sebastian Ofner and secure a place in the quarter-final of the Geneva Open.