Actually, there's an interesting (and freely available!) article that does address the externalities of fossil fuels relative to the costs of renewables.
Laurie T. Johnson, Starla Yeh, and Hope (2013). The social cost of carbon: implications for modernizing our electricity system. Journal of Environmental Studies and Sciences
Things look very bad for coal plants of any flavor. I predict that we're going to see a well-financed "liberal war on coal" campaign, as coal companies start spinning hard to keep the industry afloat at all costs.
As for the cost of rare earths for solar and wind production, it is a good question, and the best place I've found to get some idea of what's going on is at Chemical and Engineering News, which fortunately is going more and more online. Since Obama became president, his administration has been quietly pushing to open or reopen US rare earth mines, because most of them currently come from China. Things get weird in manufacturing renewable generation, because while China manufactures most solar panels and wind turbine parts, the US supplies a lot of the raw materials (other than rare earths) and buys a lot of the finished product. Arguments about trade wars over solar production of a few years back were rather simplistic.
The other big challenge is to get power companies to break their tragic addiction to massive power plants and to figure out the legal and technical challenges to handling distributed grids of rooftop solar and small turbine wind. We'll never lose the national grid, but there's hundreds (if not thousands) of square miles of unused roofs in the sunbelt, and the power companies still insist on plowing up pristine lands to build their damn power plants, just because they know how to buy from a single big generator but not from thousands of small generators, and they're afraid to make the switch.