Apparatus for generating diagnosis image, medical imaging system, and method for beamforming