Phosphorus-doped g-C3N4 integrated photocatalytic membrane reactor for wastewater treatment