Sturm-Liouville operators with an indefinite weight function