Explain the difference between linear and logistic regression. When would you use one over the other?