Real-time spectroscopic ellipsometry for determination of the optical functions of ion-beam-deposited hydrogenated amorphous carbon