Use a heart rate monitor. You would likely want to have several rides on each bike for comparison to account for different weather and for differences in how you feel that day.
I started to use a formula at this link to track my exercise a couple weeks ago. I have no clue if it is accurate, but for my use to compare one workout to the next, it is good enough.
http://www.livestrong.com/article/30...ge-heart-rate/
Some heart rate monitors also have a built in calorie function. But I have a few monitors so I wanted to make sure that I use the same formula all of the time, as the different monitors use different proprietary formulae.
I think you will find that if the two bikes have the same tire pressure, that they both have very similar energy requirements. But different rider position and other factors will come into play. I for one would have a higher calorie ride if I was not as comfortable or if the bike geometry felt off, but that would be a geometry issue and not a tire diameter issue.