Chlorine-resistant membrane for reverse osmosis. I: Correlation between chemical structures and chlorine resistance of polyamides