Effect of quantum confinement on electronic and dielectric properties of niobium dichalcogenides NbX2 (X = S, Se, Te)