Madrid must impose travel restrictions or face state of emergency, Spanish government says