Ramsey technique applied in a Penning trap mass spectrometer