Dynamical system theory approach to the study of metastable states in the random field Ising model