Metastable periodic Freedericksz transition in nematic liquid crystals