Compressive characterization of high-dimensional classical and quantum light sources