Thermoreversible luminescent ionogels with white light emission: an experimental and theoretical approach