Electron and metastable densities in parallel-plate radio-frequency discharges