Gamow-shell-model description of Li isotopes and their mirror partners