Efficient numerical algorithms for constructing orthogonal generalized doubly stochastic matrices