Analyzing Machine Learning Models for Credit Scoring with Explainable AI and Optimizing Investment Decisions