Hybrid Thermostatic Approximations of Junctions for Some Optimal Control Problems on Networks