Bio-inspired materials as interfacial layers for high performance perovskite photodetectors