R-matrix study of elastic and inelastic electron collisions with cytosine and thymine