Photographic magnitudes from Potsdam plates of 995 stars in or near the globular cluster M 3