Photochemical phase and alignment control of a nematic liquid crystal in core-sheath nanofibers