arXiv e-prints and the journal of record: An analysis of roles and relationships