Spain's Tommy Robredo knocked out top seed Stanislas Wawrinka in the semi-finals of the Grand Prix Hassan II in Casablanca.