Chemically induced hairpin formation in DNA monolayers.