An End-to-End Deep Learning Model for Spatial Allocation in Energy Systems based on Graph Neural Networks