Shape oscillations of a bubble or drop attached to a capillary tip