How to find extinction coefficient