A comprehensive review of advanced trends: from artificial synapses to neuromorphic systems with consideration of non-ideal effects