The piezoelectric effect, when generating ultrasound waves, involves the conversion of:
A. chemical energy to mechanical energy.
B. electrical energy to potential energy.
C. kinetic energy to electrical energy.
D. electrical energy to mechanical energy.