Egypt has reopened its embassy in Libya’s capital, Tripoli, after a 12-year closure.