How to determine what is California sourced income on the capital gains