Spectral variability of quasars from multi-epoch photometric data in the Sloan Digital Sky Survey Stripe 82