Inhomogeneous Random Phase Approximation for Nuclear and Atomic Reactions