Threshold corrections to gauge couplings in orbifold compactifications