Beam Pattern Optimization Method for Subarray-Based Hybrid Beamforming Systems