Flexible Semiparametric Hierarchical Spatial Models