Solar's share of newly installed electricity-generating capacity grew over the past decade while new coal plant construction disappeared.