In 2006, Jonathan Yeo painted Prince Philip’s portrait – and as as the artist recalls, the sittings were invigorating if at times nerve-wracking