Real-time heterodyne-based measurements of fiber laser spectral dynamics