Topology Optimization For Wave Propagation And Vibration Phenomena In Elastic And Piezoelectric Solids