Transport of polar molecules by an alternating-gradient guide