Photo- and electro-luminescence of a-Si:H and mixed-phase alloys