Investigation of meson masses for real and imaginary chemical potential using the three-flavor PNJL model