Protecting LEDs against hostile environments with a new type of coating