Optimal reactor dimensions for homogeneous combustion in small channels