Spain's Prime Minister has called Sunday's referendum in Greece "a key date in the history of the euro" but says that whatever the outcome "the euro will go on."