A region-based multiple testing method for hypotheses ordered in space or time