Effective generation of molecular cavities in the polarizable continuum model by the DefPol procedure