Crystal structure, phase transitions, and magnetic properties of titanium doped La0.5Sr0.5MnO3 perovskites