Tunable gold-chitosan nanocomposites by local field engineering