Determination of the TE- and TM-mode reflectivity at a laser facet using perfectly matched layers