Isobaric-multiplet mass equation in a macroscopic-microscopic approach