Fluorescence resonance energy transfer study of the global folding of functional DNAs and electrohydrodynamic printing of protein arrays