Temperature-dependent tunable spectral filters and their applications in fiber lasers