Distinguishing between Long-Range Dependence and Deterministic Trends