Level set topology optimization of structures under stress and temperature constraints