What Determines Social Capital in a Social–Ecological System? Insights from a Network Perspective