Pressure Dependence of the Resistivity in the Layered Perovskites Sr2RuO4and Sr3Ru2O7