Linear and nonlinear optical properties of carbon nanotube-coated single-mode optical fiber gratings