Evolution of hydrogen dissolution and superconductivity in Re-based solid solutions under pressure studied by ab initio calculations