High-resolution electrical detection of free induction decay and Hahn echoes in phosphorus-doped silicon