The relationship between the domestic slave trade and the external slave trade in pre-colonial Ghana