Egypt reinstates Mubarak-era prosecutor general