Explain the difference between a clustered and a non-clustered index, and when you would use each to optimize a query.