Thermodynamic Limit for Dipolar Media