Judge dismisses Flint water charges against Snyder