A wave propagation matrix method in semiclassical theory