California declares ‘energy emergency’