Eutectic and Peritectic Equilibria in Coherent Binary Alloys