Multi-physics modeling and simulation of photovoltaic devices and systems