Through-beam photoelectric sensors