A fast and accurate method to reduce the computational complexity of biophysically accurate models of neurons and synaptic inputs