Sun sensors for space and terrestrial applications