Wave propagation in beams with functionally graded porosity distribution under highly transient axial and transverse impacts