Ion energy distribution measurements in rf and pulsed dc plasma discharges