Beamforming of Ultrasound Signals from 1-D and 2-D Arrays under Challenging Imaging Conditions