Closed form estimation of boundary values in electrical distribution networks