Trilinear compensated compactness and Burnett's conjecture in general relativity