On-Chip Photonic Synapses Based on Slot-Ridge Waveguides With PCMs For In-Memory Computing