The Lp-Lq estimates of solutions to one-dimensional damped wave equations and their application to the compressible flow through porous media