Official says 37 people injured, as Spain observes three days of mourning for 42 killed in earlier train collision.