Photoelectric encoder