Onsager-theory-based dynamic model for nematic phases of bent-core molecules and star molecules