Simultaneous dynamic electrical and structural measurements of functional materials.