Flux pinning by radiation damage in oxygen-doped niobium