The perfectly matched layer boundary condition for modal analysis of optical waveguides: leaky mode calculations