Spectral analysis of singular ordinary differential operators with indefinite weights