Optimal Design of the k-Out-of-n: G (F) Majority Voter