The implementation of density functional theory within the polarizable continuum model for solvation