Explicit determination of the Picard group of moduli spaces of semistable G-bundles on curves