A complete behavioral model of radiation-pattern characteristics of phased array using a novel digital phase shifter