Text this: Energetics and phase diagrams of Fe-Cr and Co-Cr systems from first principles