The roles of STP and LTP in synaptic encoding