Method and apparatus for acoustic, particularly ultrasonic beamforming, especially designed for ultrasonic imaging