Near and medium infrared fiber optic lasers and applications