Linear Array Synthesis to Obtain Broadside and Endfire Beam Patterns Using Element-Level Pattern Diversity