Eigenfunction expansions associated with singular differential operators