Nematic liquid crystals embedded in cubic microlattices : memory effects and bistable pixels