Determination of optical constants of polymeric thin films by integrated optical techniques