A comparative analysis of the effective and local slip lengths for liquid flows over a trapped nanobubble