Hierarchical Bayes estimation of species richness and occupancy in spatially replicated surveys