Egypt reopens Tripoli consulate