Analyzing and improving electronic structure calculations of catalytic interfaces using density functional theory and machine learning