The most robust design for digital logics of multiple variables based on neurons with complex-valued weights