Mass. agency dismisses 2 battery storage projects, citing lack of legal clarity over ‘generating facility’