Bad weather prompts hundreds of flight cancellations in Chicago, Denver