Electronic imaging devices in astronomy