Text this: Optimization of the 1050 nm pump power and fiber length in single-pass and double-pass thulium doped fiber amplifiers