Photo-electric proximity switches