Does the interplay of network structure and institutions affect scientific productivity?