Some considerations about the perfectly matched layer for static fields