Complex organic molecules tracing shocks along the outflow cavity in the high-mass protostar IRAS 20126+4104