Terahertz time-domain spectroscopy of a simulated pore structure to probe particle size and porosity of porous rock