Rational design of bioinspired nanocomposites with tunable catalytic activity