Light perception and sensory transduction in photosynthetic prokaryotes