Russian third seed Daniil Medvedev fights back from a first-set deficit before French opponent Terence Atmane quits in tears because of cramp.