A high-order doubly asymptotic open boundary for scalar waves in semi-infinite layered systems