Optimization design of steady optical pin beam using genetic algorithm