Fields in a curved optical fiber