Polynomial constraint solving over finite domains with the modified Bernstein form