Effective forces in square well and square shoulder fluids.