The transition between reactive and radiative regimes for leaky modes in planar waveguides based on homogenized partially reflecting surfaces