Ali Ghodsi, Berkeley and KTH/Royal Institute of Technology