Structure and thermodynamics of charged nonrotating black holes in higher dimensions