Spain declares coronavirus state of emergency