The European Commission has launched legal action against eight EU member states for failing to transpose its revised renewable energy directive into national law.