Uncovering the dynamics and uncertainties of substituting coal power with renewable energy resources