EU proposes legislation on renewables