复数Z=a+i(a>0,i是虚数单位)若Z的绝对值等于根号十,求a