Sagnac effect and pure geometry