Ghost imaging and ghost interference with pseudo-thermal light: Mode-separation by pure software processing