Electrically programmable phase-change photonic memory for optical neural networks with nanoseconds in situ training capability