Steve Carell to leave the office after the seventh season