Mechanics of growing materials