The energy balance and pressure in the solar transition zone for network and active region features