Phase transitions in three dimensional generalized xy models