Crystal packing and phase transitions in solid bromoform