General Motors helped hook Americans on gas-guzzling trucks and SUVs that have been a disaster for the climate. Now, it’s getting serious about a pivot to electric vehicles amid increased electrification efforts from other top automakers. On Tuesday the automaker announced it will invest roughly $7 billion to build…