County gets $3.2 million energy grant