Photoreceptor proteins from purple bacteria