The evolution of pore connectivity in volcanic rocks