Shapes and phase transitions in generalized boson models