Deformation spaces of G-trees and automorphisms of Baumslag–Solitar groups