Dielectric constant of solvents at nano to bulk regimes: linear response theory and statistical mechanics-based approaches