Investigation of magnetic phase transitions in HoPO4 and HoAsO4