Optimization of microwave devices combining topology gradient and genetic algorithm