A relaxation approach to patched-grid calculations with the Euler equations