Effect of dopants on grain coalescence and oxygen mobility in nanostructured titania anatase and rutile