Optimal rigid inclusion shapes in elastic bodies with cracks