A physics-based open atmosphere boundary condition for height-coordinate atmospheric models