Nonlinear mapping of the luminance in dual-layer high dynamic range displays