Determination of the optical constants of polystyrene films from ATR measurements