Specific heat and modulated magnetic structures in the HoNi0.5Cu0.5 and ErNi0.6Cu0.4 compounds