All of the following structure lies outside the cavernous sinus except