The cost of controlling weakly degenerate parabolic equations by boundary controls