Almost 1m buildings do not have access to electricity after Ernesto swept across the Caribbean island.