Sol–Gel Electrolytes Incorporated by Lanthanide Luminescent Materials and Their Photophysical Properties