A surge of solar power output has helped the green energy source overtake coal-fired stations in the European Union (EU) for the first time last year, a report shows.