CometNet: Contextual Motif-guided Long-term Time Series Forecasting