Nucleation theory and domain states in multidomain magnetic material