Analog ferroelectric domain-wall memories and synaptic devices integrated with Si substrates