Design and Validation of an LED-Based Solar Simulator for Solar Cell and Thermal Testing