Strain and ferroelectric soft-mode induced superconductivity in strontium titanate