The discovery of the serendipitous X-ray pulsar SAX J1802.7-2017 from a BeppoSAX observation of GX 9+1