Optimum Design of Layered Elastic Stress Wave Attenuators