Spectral variability of quasars from the MACHO project database