Error mitigation via stabilizer measurement emulation