Invariant measures for stochastic differential equations on networks