China’s tech firms vow crackdown on online hate speech after knife attack