Photorefractive solitons embedded in gratings in centrosymmetric crystals