Insights into distorted lamellar phases with small angle scattering and machine learning