Influence of hydrogen on structure and magnetic properties of Ho6Fe23 and Er6Fe23