Probing layered structures by multi-color backscattering polarimetry and machine learning