Criteria for hitting probabilities with applications to systems of stochastic wave equations