Relations between Structure and the Optical and Electrical Properties of Amorphous Si and Ge Films