Massachusetts will replace Northern Pass if project doesn't nab NH permit