Folding and faulting of an elastic continuum