Prompt Photon Production in 300 GeV/c π -p, π +p and pp Collisions