Green's function for Sturm-Liouville problems