James McGee qualifies for second round in Spain