External fields in conceptual density functional theory