First-principles calculation of spin and orbital contributions to magnetically ordered moments in Sr2IrO4