Barcelona Van Attackers Plotted Major Bombings, Suspect Tells Spanish Court