A Transparent Boundary Approach for the Simulation of Resonances in Open Systems