Optimal synthesis of sum and difference patterns with arbitrary sidelobes subject to common excitations constraints