Throughbeam photoelectric sensors