Bio-inspired incorporation of phenylalanine enhances ionic selectivity in layer-by-layer deposited polyelectrolyte films.