A statistical model of crosslinked polymer structure