Stability of amorphous/crystalline silicon heterojunctions