Generalization bound for estimating causal effects from observational network data