The influence of temperature on the structural behaviour of sodium tri- and hexa-titanates and their protonated forms