Mean-field-like approximations for stochastic processes on weighted and dynamic networks