Polarizable Continuum Model: physical basis and numerical machinery