Orbital phase spectroscopy of four high mass X-ray binary pulsars to study the stellar wind of the companion