Multifunctional encoded self-assembling protein nanofibrils as platform for high-throughput and multiplexed detection of biomolecules.