On the Kodaira dimension of minimal threefolds