California declares state of emergency