Logic Optimization for Majority Gate-Based Nanoelectronic Circuits Based on Genetic Algorithm