Innovation diffusion processes: competition and substitution in energy technologies