Master cylinder for a motor vehicle with a device for determining the braking operation, in particular the position of the piston