Characterization and design optimization of heterojunction photodiodes comprising n-type ultrananocrystalline diamond/hydrogenated amorphous carbon composite and p-type Si