First-principles study of a tilt grain boundary in rutile.