GRAM: Spatial general-purpose audio representation models for real-world applications