Chiral magnetic effect in the PNJL model