A plane wave implementation of the polarizable continuum model