Modelling functional gene interactions in preterm birth using multiomic and spatial data