How does the rotation of the Earth cause day and night?