Continuous flow synthesis of porous materials