Electronic and optical properties of glow-discharge amorphous silicon-carbon alloys