Optimisation of excitation tolerances for robust beamforming in linear arrays