Conditioned limit theorems relating a random walk to its associate, with applications to risk reserve processes and the GI/G/1 queue