Amorphous silicon based nipiin structure for color detection