Synthesis of polyaluminum chloride with a membrane reactor: parameters optimization for the in situ synthesis