updates PML routines

PML now works also with mesh coloring, fixes a bug for pml local element assignments when elements are in random order