'On the use of PML for the computation of leaky modes: an application to gradient index MOF'