A maximum-entropy approach to the linear credibility formula