Detachment of gas bubbles from an inclined surface