Global carleman estimates for degenerate parabolic operators with applications