Effects of the pore shape polydispersity on the percolation threshold and diffusivity of porous composites: Theoretical and numerical studies