Mesoporous titanium and niobium nitrides as conductive and stable electrocatalyst supports in acid environments.