The spin ice Ho2Ti2O7 versus the spin liquid Tb2Ti2O7: field-induced magnetic structures