Technology substitution in the electricity sector - a top down approach with bottom up characteristics