Duality of type-II 7-branes and 8-branes