Direct solution of the three-dimensional Lippmann–Schwinger equation