Phase diagrams and shape transformations of toroidal vesicles