The encapsulation of an organic light-emitting diode using organic–inorganic hybrid materials and MgO