Linear chains of styrene and methylstyrene molecules and their heterojunctions on silicon: Theory and experiment