The rise of Taylor bubbles in vertical and inclined pipes