SAP plans layoffs and selloff with cloud revenue up but profit down