Dual-layer spectral computed tomography: measuring relative electron density