Gravity in warped compactifications and the holographic stress tensor