ergm: A Package to Fit, Simulate and Diagnose Exponential-Family Models for Networks.