nighttime is caused by the earth's rotation