Spain investigates violent groups that attacked prime minister, king, queen