How does matter and energy move through the water cycle