All-optical switching in an optofluidic polydimethylsiloxane. Liquid crystal grating defined by cast-molding