Energy management for building climate comfort in uncertain smart thermal grids with aquifer thermal energy storage