A Structural Model of Opinion-Writing on Appellate Courts