Gravitational tension and thermodynamics of planar AdS spacetimes