Andy Murray is out of the Gijon Open after being beaten in three sets by Sebastian Korda in the quarter-finals.