Spain extends state of emergency amid record surge