Programming nonreciprocity and reversibility in multistable mechanical metamaterials