Lavigne initially wrote “Breakaway” for her debut album, but when it didn’t make the cut, the record ended up in Clarkson’s hands