Pressure-induced superconductivity in cesium and yttrium