A new approach to the variability characterization of active galactic nuclei