Gravar-mail: Genetic Algorithm Application in Optimization of Wireless Sensor Networks