The origin of nitrogen on Jupiter and Saturn from the 15N/14N ratio