A frustrated packing model for the B6-B1-SmAPA sequence of phases in banana shaped molecules