An introduction to optical fibers