Tuning of rogue waves in a semiconductor laser by modulating the injection strength