Hypervirial Theorems for 1D Finite Systems. Dirichlet Boundary Conditions