Aggregation and layering transitions in thin films of X-, T-, and anchor-shaped bolaamphiphiles at the air-water interface.