Method and device for detecting the position of the edge of a moving material web