Structurally colored thiol chitosan thin films as a platform for aqueous heavy metal ion detection.