NJ declares state of emergency ahead of winter storm