Added support for non-periodic boundaries (according to new AMBER specification, cell_lengths should be set to zero for non-periodic directions).