More teachers are quitting, and those who remain aren't happy, researchers say