Integration of Renewable Energy Networks into Smart Grid Infrastructure: A MATLAB/Simulink-Based Simulation Approach