The population genetics of reinforcing selection