Ahold posts 3.1% profit rise in Q2