Compensated compactness and applications to partial differential equations