Acoustic and Ultrasonic Beam Focusing Through Aberrative and Attenuative Layers