Estimating time-varying input signals and ion channel states from a single voltage trace of a neuron