A clinical system for the in vivo measurement of lung density