12 dead, millions powerless after storms during intense heat spell