Spectral evolution of magnetic flares and time lags in accreting black hole sources