Fabrication and characterization of a smart epitaxial piezoelectric micromachined ultrasonic transducer