Scaling theory of star polymers and general polymer networks in bulk and semi-infinite good solvents