Composite devices with photosensitive elements and electroluminescent elements within one single body