How the source depth of coastal upwelling relates to stratification and wind