Isobaric multiplet mass equation within nuclear density functional theory