Minimal injective resolutions of modules over Cohen-Macaulay rings