Periodic crack system in a layered elastic wedge