Emery gets first win as Arsenal battle back against West Ham