Two-loop β-function for the generalized bosonic sigma model