Dynamic porosity in rocks investigated by 4D synchrotron x-ray microtomography