Spain gives up Olympic plans