Perfectly matched layers via transformation electromagnetism for the computation of quasi-modes