Measuring or detecting injection-valve lift