Escape probability methods versus ``exact" transfer for modelling the X-ray spectrum of Active Galactic Nuclei and X-ray binaries