New ghost-free extensions of general relativity