Second-order homogenization of boundary and transmission conditions for one-dimensional waves in periodic media. (April 2020)