Nick Ross and Aaron Doran were on target as Inverness booked their spot in the last eight of the Scottish Cup with a 2-0 victory over Stranraer.