A numerical measure of the conversion efficiency between electrical and acoustic energy in piezoelectric materials