rewriteable photonic chip