Eigenfunction expansions for nondensely defined operators generated by symmetric ordinary differential expressions