Somali judges learn to prosecute pirates