Weapon linked Roberts-Smith to Afghan killing, SAS soldier tells court