Numerical and analytical analyses of the impact of monodisperse and bidisperse granular flows on a baffle structure