Roberto Martinez felt Everton's "character" shone through as they claimed a dramatic 3-2 victory at West Ham United.