Computation of Pommaret bases using syzygies