A novel formulation for the numerical computation of magnetization modes in complex micromagnetic systems