Scattering-method calculation of propagation modes in two-dimensional photonic crystals of finite thickness