On the minimum distance of parallel and serially concatenated codes