Exchange magnetostriction in two-dimensional antiferromagnets