The pop icon on her farewell tour, the musical heroes who inspired her, and why she’ll never give up