High-performance thin-film encapsulation for organic light-emitting diodes