Sharp interface tracking using the phase-field equation