Weakly nonlinear analysis of viscous dissipation thermal instability in plane Poiseuille and plane Couette flows