Rory McIlroy believes a fifth major title isn't far away after missing out on US Open victory at Torrey Pines.