A state program to connect residents with clean energy and energy efficiency incentives is expanding to four communities in eastern Massachusetts.