Homogenization of networks in domains with oscillating boundaries