Advancing Grid Modernization Through Data-Driven Resilience Modeling and Hosting Capacity of Distributed Energy Resources