UV–visible sensors based on polymorphous silicon