Reflection and transmission of seismic waves at the boundaries of porous media