Improvement of the kink-free operation in ridge-waveguide laser diodes due to coupling of the optical field to the metal layers outside the ridge