Computation of eigenvalues for second-order differential equations using imbedding techniques