pH- and ionic strength-controlled cation permselectivity in amine-modified nanoporous opal films.