Bayesian Spatiotemporal Modeling Using Hierarchical Spatial Priors with Applications to Functional Magnetic Resonance Imaging