On the quark component in prompt photon and electroweak gauge boson production at high energies