Emulators for the nonlinear matter power spectrum beyond ΛCDM