A quantum mechanical study of TiCl3 alpha, beta and gamma crystal phases: geometry, electronic structure and magnetism