A Chinese environmental journalist's account of police harassment while reporting on a chemical spill has sparked widespread condemnation online and an apology from the police.