Notes on the Sagnac effect in general relativity