Characterization of structural changes in aptamer films for controlled release nanodevices.