MODELING THE EXTRAGALACTIC BACKGROUND LIGHT FROM STARS AND DUST