Reducing carbon dioxide emissions in the electricity sector using demand side management