Micro-Extinction Spectroscopy (MExS): a versatile optical characterization technique