Stay in Afghanistan beyond 2014 will be a key to success: McCain