Pathbreaking analysis targets electrification for people who’ll save the most money and maximize grid value.