Bioprocess-inspired synthesis of hierarchically porous nitrogen-doped TiO2 with high visible-light photocatalytic activity