Boundary condition effects on the dynamic and electric properties of hydration layers