Energy crisis spurs switch to electricity