Mechanism of superconductivity in SrTiO3