Beam scanning with null and excitation constraints for linear arrays of antennas