The reliability of desalination and water reuse plants often rests on details hidden from view: the membranes that keep salt and impurities