SMS: Solar cell device physics